<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../layuimini/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../layuimini/css/public.css" media="all">
</head>
<body>



<div class="layuimini-container">
    <div class="layuimini-main">



        <form class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">VIP到期时间</label>
                <div class="layui-input-block">
                    <input type="text" name="title" required  lay-verify="required"autocomplete="off" class="layui-input" disabled>
                </div>
            </div>
        </form>



    </div>
</div>
<script src="../layuimini/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="../js/commos.js"></script>
<script src="../js/jquery-3.6.0.js"></script>
<script>
    layui.use(['form', 'table'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table;



        $.ajax({
            url:URL+"vip/vipState",
            type:"get",
            dataType:"json",
            success:function (result,status,xmlhttp) {
                // let $select = $("select[name='vid']");
                let $select = $("input[type='text']");
                console.log(result.data);
                $select.val(result.data.endTime);


            }

        });

    });
</script>
<script>

</script>

</body>
</html>